home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / graphic / pvquan16.zip / ANIM.CMD next >
OS/2 REXX Batch file  |  1992-11-09  |  948b  |  31 lines

  1. rem 4OS/2 command file to generate an animation file
  2. : Usage:   anim filename
  3.  
  4. : expects filename.var and filename.pov to be present in the current directory
  5. : expects animdat.exe, povray.exe, heckbert.exe, animfli.exe to be in a directory in PATH
  6. : creates then deletes filename_xxx.pov, filename_xxx.tga, filename.xxx
  7. :                         where xxx is in the range 0..??
  8. : creates filename.fli
  9.  
  10. echo off
  11. path %path%;e:\graphics
  12. if not exist %1_0.pov animdat %1
  13. *set i=0
  14. :LOOP
  15.    echo %1_%i.pov
  16.    if not exist %1_%i.pov goto QUANTISE
  17.    if %@FILESIZE[%1_%i.tga,b] GT 192000 goto SKIP
  18.    povray -i%1_%i.pov -ld:\graphics\ray\pov\include +a -q9 +ft -w320 -h200 -c -v +d
  19. :SKIP
  20.    if %@FILESIZE[%1_%i.tga,b] GT 19200 del %1_%i.pov
  21.    *set i=%@EVAL[%i + 1]
  22.    goto LOOP
  23.  
  24. :QUANTISE
  25. rem octree -t=1 -i=1 -n=%i %1
  26. heckbert -t=1 -i=1 -s=0 -n=%i %1
  27. if exist %1.0 del %1*.tga
  28. animfli %1 %1
  29. if exist %1.fli del %1.[0-9]*
  30.  
  31.